package com.baizhi.cmfz.service.impl;

import com.baizhi.cmfz.dao.AlbumDao;
import com.baizhi.cmfz.entity.Album;
import com.baizhi.cmfz.service.AlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AlbumServiceImpl implements AlbumService {
   @Autowired
    private AlbumDao albumDao;
    @Override
    public List<Album> selectAlbum() {
        return albumDao.selectAlbum();
    }

    @Override
    public List<Album> selectAudio(Integer albumId) {
        return albumDao.selectAudio(albumId);
    }

    @Override
    public Album selectOneAlbum(Integer id) {
        return albumDao.selectOneAlbum(id);
    }
}
